package com.sky.service.user;

import com.sky.dto.OrdersSubmitDTO;
import com.sky.vo.OrderSubmitVO;

import java.time.LocalDateTime;

public interface UserOrderService {
    /**
     * 获取预计送达时间
     * @param customerAddress
     * @param shopId
     * @return
     */
    LocalDateTime getEstimatedDeliveryTime(String customerAddress, Long shopId);

    /**
     * 提交订单
     * @param ordersSubmitDTO
     * @return
     */
    OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);

    /**
     * 支付成功
     * @param mun
     */
    void paySuccess(String mun);

    /**
     * 催单
     * @param orderId
     * @return
     */
    String reminder(Long orderId);
}
